package com.googlecode.maurersmarbles.drawables;

import android.graphics.Canvas;
import android.graphics.Paint;
import android.graphics.Rect;

public class SimpleMarbleDrawable extends MarbleDrawable {

	/**
	 * The paint to draw the marble.
	 */
	private static final Paint PAINT = new Paint();

	/**
	 * Creates a new SimpleMarbleDrawable.
	 * @param color the marble color
	 * @param boundingBox the bounding box to draw the marble in
	 */
	public SimpleMarbleDrawable(int color, Rect boundingBox) {
		super(color, boundingBox);
	}

	@Override
	public void drawMarble(Canvas canvas, int startX, int startY, int width,
			int height, int color) {
		PAINT.setColor(color);
		canvas.drawCircle(startX + (int) (width / 2.0), startY
				+ (int) (height / 2.0), (float) (width / 2.0), PAINT);
	}

}
